<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        include_once('../includes/utilidades.php');
        session_start();

        //print_r($_SESSION);
        $temporadaid = $_SESSION['estado']['temporada'][0]['id'];
        $categoriaid = $_REQUEST['id'];
        
        $temporada = select("select * from temporada", "id=" . $temporadaid);
        $categoria = select("select * from categoria", "idtemporada=" . $temporadaid);
        //$mprueba = select("select * from mprueba", "idcategoria=" . $categoriaid);
        
//print_r($competicion);
        print "<h1> Temporada" . $temporada[0]['nombre'] . "</h1>";

        $actual = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];

//print ($actual)
        print "<h2> Categoria " . $categoria[0]['nombre'] . "</h2>";

        $_SESSION['afterAdd']['mprueba'] = $actual;
        print "<h2> Definicion de pruebas por categoria </h2>";
        $valoresFK = array ('idcategoria' => $categoriaid );
        //toHTML('mprueba', $mprueba, 'id');
        //HTMLadd("mprueba", $valoresFK);
        ?>
    </body>
</html>
